<?php
namespace app\index\model;

use think\Model;

class ProgramModel extends Model
{
    protected $table = 'sf_program';
    protected $autoWriteTimestamp = true;
    protected $createTime = 'add_time';
    protected $updateTime = 'update_time';
    public function getAddTimeAttr($data){
        return date('Y-m-d H:i:s',$data);
    }
    public function getUpdateTimeAttr($data){
        return date('Y-m-d H:i:s',$data);
    }
    public function getDetailAttr($data){
        return htmlspecialchars_decode($data);
    }
}
